<?php

    /**
     * 微信授权登录
     * $code 微信登录的code
     * **/
    Route::post('login', 'client/login/login');
    
    /**
     * 微信用户信息
     * **/
    Route::post('userinfo', 'client/User/userInfo');
    /**
     * 绑定手机号码
     * **/
    Route::post('bindmobile', 'client/User/bindMobile');
    
    /**
     * 更新用户信息
     * **/
    Route::get('user/number', 'client/User/number');
    
    /**
     *
     * **/
    Route::get('user/fansNumber', 'client/User/fansNumber');
    
    /**
     * 更新用户信息
     * **/
    Route::post('user/update', 'client/User/update');
    
    /**
     * 邀请记录
     * **/
    Route::get('invite/myInvite', 'client/Invite/log');
    Route::get('invite/number', 'client/Invite/numbers');
    Route::get('invite/qrcode', 'client/Invite/qrcode');
    
    
    /**
     * 获取用户某个字段
     * **/
    Route::get('user/userfield/:field', 'client/User/getUserItem');
    Route::get('user/user/:userId', 'client/User/getUserByUserId');
    
    /**
     * 微信用户信息
     * **/
    Route::get('area/geocoder', 'client/Area/geocoder')->allowCrossDomain();
    
    
    /**
     * 发布
     * **/
    Route::get('categorys', 'client/Category/categorys');
    
	/**
	 * 
	 * **/
	Route::post('cateogry/add', 'client/Category/add');
	/**
	 * 
	 * **/
	Route::post('cateogry/update', 'client/Category/update');
	
	/**
	 *
	 * **/
	Route::post('cateogry/remove/:id', 'client/Category/remove');
    
    /**
     * 发布
     * **/
    Route::post('publish', 'client/Publish/chat');
    Route::get('publish/:chatId', 'client/Publish/editInfo');
    
    /**
     * 上传图片
     * **/
    Route::post('upload/uploadpic', 'client/Upload/uploadpic');
    
    

    Route::get('chat/:name', 'client/Chat/:name');
    
    Route::delete('chat/delete', 'client/Chat/delete');
    
    /**
     * 上报位置
     * **/
    Route::post('near/location', 'client/Near/updateLocation')->allowCrossDomain();
    /**
     * 隐藏位置
     * **/
    Route::post('near/hidden', 'client/Near/hiddeLocation');
    
    /**
     * 附近的人
     * **/
    Route::get('near/person', 'client/Near/person')->allowCrossDomain();
    
    /**
     * 红包
     * **/
    Route::get('redenvelope/:name', 'client/Redenvelope/:name')->allowCrossDomain();

    
    
    /**
     * 抢红包
     * **/
    Route::get('chat/grab/:id', 'client/Chat/grab')->allowCrossDomain();;;
    
    /**
     * 产品红包领取金额
     * **/
    Route::post('chat/grabShareAmount', 'client/Chat/grabShareAmount');
    
    
    /**
     * 微信支付异步请求
     * **/
    Route::post('notify/:name', 'client/Notify/:name');
    
    /**
     * 加入购物车
     * **/
    Route::post('cart/add', 'client/Cart/add');
    
    /**
     * 删除购物车
     * **/
    Route::post('cart/delete', 'client/Cart/delete');
    
    /**
     * 购物车列表
     * **/
    Route::get('cart', 'client/Cart/index');
    
    /**
     * 更新购物车
     * **/
    Route::post('cart/change', 'client/Cart/changeCart');
    
    /**
     * 生成订单页面
     * **/
    Route::post('cart/toorder', 'client/Cart/toOrder');
    
    /**
     * 结算
     * **/
    Route::post('cart/settlement', 'client/Cart/settlement');
    
    
    /**
     * 所有收货地址
     * **/
    Route::get('deliveryaddress', 'client/DeliveryAddress/index');
    
    /**
     * 获取地址信息
     * **/
    Route::get('delivery/getAddress', 'client/DeliveryAddress/getAddressById');
    
    /**
     * 收货地址
     * **/
    Route::get('delivery/address', 'client/DeliveryAddress/getDefault');
    
    /**
     * 保存收货地址
     * **/
    Route::post('deliveryaddress/add', 'client/DeliveryAddress/save');
    
    /**
     * 保存收货地址
     * **/
    Route::post('deliveryaddress/edit', 'client/DeliveryAddress/save');
    
    /**
     * 删除收货地址
     * **/
    Route::get('deliveryaddress/delete/:id', 'client/DeliveryAddress/delete');
    
    
    /**
     * 地区
     * **/
    Route::post('area/create', 'client/Area/create');
    /**
     * 地区
     * **/
    Route::get('area/:name', 'client/Area/:name');
    
    /**
     * 银行列表
     * **/
    Route::get('bank/list', 'client/Bank/bankList');
    
    /**
     * 我的商品仓库
     * **/
    Route::get('goods/store', 'client/Goods/store');
    /**
     * 删除
     * **/
    Route::delete('store/library/delete', 'client/Store/libraryDelete');
    /**
     * 店铺二维码
     * **/
    Route::get('store/qrcode', 'client/Store/qrCode');
    
    /**
     * 订单
     * **/
    Route::get('order/list', 'client/Order/orderList');
    
    /**
     * 订单
     * **/
    Route::get('order/detail', 'client/Order/detail');
    
    /**
     * 取消订单
     * **/
    Route::post('order/cancel', 'client/Order/cancel');
    
    /**
     * 获取商家收款信息
     * **/
    Route::get('order/merchantpay', 'client/Order/merchantPayType');
    /**
     * 确认支付
     * **/
    Route::post('order/pay', 'client/Order/confirmPay');
    
    /**
     * 确认收货完成订单
     * **/
    Route::post('order/complete', 'client/Order/confirmComplete');
    
    /**
     * 
     * **/
    Route::get('order/number', 'client/Order/number');
    
    
    
    /**
     * 订单
     * **/
    Route::get('merchantOrder/list', 'client/MerchantOrder/orderList');
    
    /**
     * 订单
     * **/
    Route::get('merchantOrder/detail', 'client/MerchantOrder/detail');
    
    /**
     * 确认订单
     * **/
    Route::post('merchantOrder/confirm', 'client/MerchantOrder/confirmOrder');
    
    /**
     * 取消订单
     * **/
    Route::post('merchantOrder/cancel', 'client/MerchantOrder/cancelOrder');
    
    /**
     * 确认发货
     * **/
    Route::post('merchantOrder/deliver', 'client/MerchantOrder/confirmDeliver');
    
    
    /**
     *
     * **/
    Route::get('merchantOrder/number', 'client/MerchantOrder/number');
    
    
    
    /**
     * 通讯录
     * **/
    Route::get('mail/:name', 'client/MailList/:name');
    
    /**
     * 主页
     * **/
    Route::get('visit/:name', 'client/Visit/:name');
    Route::post('visit/follow', 'client/Visit/follow');
    Route::post('visit/unfollow', 'client/Visit/unfollow');
    
    /**
     * 店铺
     * **/
    Route::get('store/:name', 'client/Store/:name');
    
    /**
     * 
     * **/
    Route::get('merchant/personApplyFansNumber', 'client/Merchant/personApplyFansNumber');
    
    /**
     * 申请成为商家
     * **/
    Route::post('merchant/apply', 'client/Merchant/apply');
    Route::post('merchant/pay', 'client/Merchant/pay');
    
    /**
     * 设置收款信息
     * **/
    Route::post('merchant/payset', 'client/Merchant/setPayType');
    /**
     * 获取收款信息
     * **/
    Route::get('merchant/getpay', 'client/Merchant/getPayType');
    
    /**
     * 代理
     * **/
    Route::get('agent/rule', 'client/Agent/agetRule');
    Route::post('agent/setrule', 'client/Agent/setAgentRule');
    Route::post('agent/apply', 'client/Agent/apply');
    
    /**
     * 钱包
     * **/
    Route::get('wallet/balance', 'client/Wallet/balance');
    Route::post('wallet/withdrawal', 'client/Wallet/withdrawal');
    Route::get('wallet/log', 'client/Wallet/log');
    
    
    /**
     * 
     * **/
    Route::post('reward/:name', 'client/Reward/:name');
    
    /**
     *砍价
     * **/
    Route::get('bargain/viewList', 'client/Bargain/viewList');
    Route::post('bargain/start', 'client/Bargain/start');
    Route::get('bargain/bargain/:id', 'client/Bargain/bargain');
    Route::post('bargain/help/:id', 'client/Bargain/help');
    Route::get('bargain/helpLog/:id', 'client/Bargain/helpLog');
    
    
    
    /**
     *抽奖
     * **/
    Route::get('luck/viewList', 'client/Luckdraw/viewList');
    Route::get('luck/list', 'client/Luckdraw/drawList');
    Route::get('luck/draw', 'client/Luckdraw/draw');
    Route::get('luck/drawView', 'client/Luckdraw/drawView');
    Route::post('luck/grab', 'client/Luckdraw/grab');
    Route::post('luck/order', 'client/Luckdraw/order');
    
    
    
    /**
     *二维码
     * **/
    Route::get('qr/:name', 'client/Qrcode/:name');
    
    /**
     *发送短信验证码
     * **/
    Route::post('sms/:name', 'client/Sms/:name');
    
    